package cn.lhjl.day10.Annotation;

public class Person {
    private String name =  "LingHu";
    public int age;
    public void show1(){
        System.out.println("方法一");
    }
    public void show2(){
        System.out.println("方法二");
    }

    @Override
    public String toString() {
        return "Person{" +
                "name='" + name + '\'' +
                ", age=" + age +
                '}';
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public Person(String name, int age) {
        this.name = name;
        this.age = age;
    }

    public Person() {
    }
    public static void show(){
        System.out.println("静态方法能执行");
    }
}
